#!/bin/bash

#this script must be started from project root as ./helpers/uploader

STAMP=`date +%d-%m-%y_%H-%M`
TARBALL="netlabs_${STAMP}.tar.gz"
SOURCE=lab1/html/
TARGET=tarballs/

#first run make
make all print

#tarball it
tar czf $TARBALL $SOURCE

#move tarball
mkdir -p $TARGET
mv $TARBALL $TARGET
